package cho114366.basic;

import java.util.Scanner;

public class J03_0711_33 {

	public static void main(String[] args) {
		
		Scanner sc = null;
		
		sc = new Scanner(System.in);
		
		int num;
		
		final int a = 6317;
		final int b = 6901;
		final int c = 6912;
		final int d = 4825;
		final int e = 8676;
		final int f = 7973;
		final int g = 3;
		final int h = 4;
		
		System.out.println("임의의 숫자 6자리를 입력하시오 : ");
		
		num = sc.nextInt();
	
	
		
		sc.close();
		
		switch (num/100000) {
		case g :System.out.println("JBC카드");
		switch(num%10000){
		case a :System.out.println("NH농협카드");
		break;
		case b:System.out.println("신한카드");
		break;
		case c :System.out.println("KB국민카드");
		break;
		default: System.out.println("잘못된 임의의 숫자입니다");
		break;
		}
		break;
		
		case h :System.out.println("비자카드");
		switch(num%10000){
			case d:System.out.println("비씨카드");
			break;
			case e:System.out.println("신한카드");
			break;
			case f:System.out.println("국민은행");
			break;
			default: System.out.println("잘못된 임의의 숫자입니다");
			break;	
		}
		break;
		
		}
		}

		}
			
	
	


	

	
